

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface APPTools : NSObject
#pragma mark - get请求不带缓存
+ (void)GETWithURL:(NSString *)urlStr
               par:(NSDictionary *)dic
           success:(void(^)(id responseObject))responseObj
             filed:(void(^)(NSError *error))error;

+ (void)POSTWithURL:(NSString *)urlStr
                par:(NSDictionary *)dic
            success:(void(^)(id responseObject))response
              filed:(void(^)(NSError *error))err;
#pragma mark - get请求带缓存
+ (void)CQCacheGETWithURL:(NSString *)urlStr
                      par:(NSDictionary *)dic
                  success:(void (^)(id))responseObj failed:(void (^)(NSError *))err;
#pragma mark - 自适应文字高度
+ (CGSize)labelRectWithSize:(CGSize)size LabelText:(NSString *)labelText Font:(UIFont *)font;
#pragma mark - 把responseObject对象保存到数据库
+ (void)saveResponseObjectToCaches:(id)responseObject fileName:(NSString *)fileName;
#pragma mark - 从数据库中把responseObject对象取出来
+ (id)readResponseObjectFromCaches:(NSString *)fileName;
#pragma mark - 获取Caches的路径并创建文件夹:文件夹名为dataSource
+ (NSString *)pathOfCaches;
#pragma mark - 给定一个文件名存到文件夹名为dataSource的文件夹中此方法返回一个路径(存放文件的路径)
+ (NSString *)saveInCachesWithFileName:(NSString *)name;
@end
